package com.wzdigit.wms.basic.mapper.core.inventory;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.inventory.SimpleGoodsVersion;
import com.wzdigit.wms.basic.domain.inventory.GoodsVersion;

@MyBatisRepository
public interface GoodsVersionMapper {
	
	GoodsVersion selectBySn(@Param("sn")String sn);

    GoodsVersion selectById(@Param("goodsId")Integer goodsId);
    
    
    
    List<GoodsVersion> selectBySnList(@Param("snList")List<String> snList);
    
    List<GoodsVersion> selectByIdList(@Param("goodsIdList")List<Integer> goodsIdList);
    
    
    
    List<SimpleGoodsVersion> selectSimpleBySnList(@Param("snList")List<String> snList);
    
    List<SimpleGoodsVersion> selectSimpleByIdList(@Param("goodsIdList")List<Integer> goodsIdList);
    
    

    int updateById(GoodsVersion record);
    
    // 需配合updateById一起使用
    int updateQtyById(GoodsVersion record);
}